package com.drools.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Utils {

    public static void printDate(Date date, String formate) {
        SimpleDateFormat sdf = new SimpleDateFormat(formate);
        System.out.println(sdf.format(date));
    }

    public static void printDateNormal(Date date) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
        System.out.println(sdf.format(date));
    }
}
